package com.fund.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum EntrustMode implements BaseEnum {
    COUNTER(1, "柜台委托"),
    ONLINE(2, "网上委托"),
    PHONE(3, "电话委托"),
    AUTO(4, "自动委托"),
    THIRD_PARTY(5, "第三方授权委托");

    @JsonValue
    @EnumValue
    private final Integer value;
    private final String desc;
    EntrustMode(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
    @Override
    public Integer getValue() {
        return this.value;
    }
}
